package com.prd.constant;

import lombok.Getter;

/**
 * 决议状态
 */
@Getter
public enum SummaryStatus {

    ONE(1, "待审核"), TWO(2, "同意"), THREE(3, "不同意");

    private final Integer code;
    private final String info;

    SummaryStatus(Integer code, String info) {
        this.code = code;
        this.info = info;
    }

    public static String values(Integer code) {
        String name = "未知";
        for (SummaryStatus summaryStatus : values()) {
            if (summaryStatus.getCode() == code) {
                name = summaryStatus.getInfo();
                break;
            }
        }
        return name;
    }
}
